﻿<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="seeion.asp"-->
<script language="javascript">
function showUploadDialog(s_Type, s_Link, s_Thumbnail){
var arr = showModalDialog("eWebEditor/dialog/i_upload.htm?style=popup&type="+s_Type+"&link="+s_Link+"&thumbnail="+s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");}
</script>
<html>
<head>
<link href="images/style.css" type="text/css" rel="stylesheet" />
</head>
<body>

<%if request("type")="" then%>

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="head"><strong>增加名人</strong></td>
</tr>
<tr>
<td>
<form method="post" name="myform" action="admin_Celeb_pass.asp?type=add">
<table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
<tr>
<td width="15%"><div align="center">名人名称<font color="#FF0000"> (中文)</font></div></td>
<td width="85%"><input name="Name" type="text" id="Name" size="40"></td>
</tr>
<tr id="EN_1">
<td width="15%"><div align="center">名人名称<font color="#FF0000"> (英文)</font></div></td>
<td><input name="eName" type="text" id="eName" size="40"></td>
</tr>
<tr>
<td width="15%" ><div align="center">名人分类</div></td>
<td>
<select name="SortID" id="select">
<%
dim rsc
set rsc=server.CreateObject("adodb.recordset")
rsc.open "select * from Sort_Celeb",conn,1,1
while not rsc.eof
response.Write("<option value=""" & rsc("id") & """>" & rsc("Name") & "</option>")
rsc.movenext
wend
rsc.close
set rsc=nothing
%>
</select></td>
</tr>
<tr>
  <td ><div align="center">名人主页</div></td>
  <td><input name="FrontPage" type="text" id="FrontPage" size="40" /></td>
</tr>
<tr>
<td width="15%" ><div align="center">名人照片</div></td>
<td><input name=Photo type=text id="Photo" size=50>
<input type=button value="上传图片" onClick="showUploadDialog('image', 'myform.Photo', '')"> 
(缩略图尺寸：148*148)</td>
</tr>
<tr>
<td width="15%" ><div align="center">名人介绍<font color="#FF0000"> (中文)</font></div></td>
<td><INPUT type="hidden" name="Description" value="">
<IFRAME ID="eWebEditor1" SRC="ewebeditor/ewebeditor.htm?id=Description&style=popup" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="400"></IFRAME> </td>
</tr>
<tr id="EN_2">
<td width="15%" ><div align="center">名人介绍 <font color="#FF0000">(英文)</font></div></td>
<td><INPUT type="hidden" name="eDescription" value="">
<IFRAME ID="eWebEditor1" SRC="ewebeditor/ewebeditor.htm?id=eDescription&style=popup" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="400"></IFRAME></td>
</tr>
<tr>
<td width="15%" >&nbsp;</td>
<td><input type="submit" name="button"  value="確认提交" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>

<%else%>

<% 
exec="select * from Celeb where id="& request.QueryString("id") 
set rs=server.createobject("adodb.recordset") 
rs.open exec,conn,1,1 
%>

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="head"><strong>修改名人</strong></td>
</tr>
<tr>
<td>
<FORM method="post" name="myform" action="admin_Celeb_pass.asp?type=update">
  <table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
    <tr>
      <td width="15%"><div align="center">名人名称<font color="#FF0000"> (中文)</font></div></td>
      <td width="85%"><input name="Name" type="text" id="Name" value="<%=rs("Name")%>" size="40" />
        <input name="ID" type="hidden" id="ID" value="<%=request.QueryString("id") %>" /></td>
    </tr>
    <tr id="EN_1">
      <td width="15%"><div align="center">名人名称<font color="#FF0000"> (英文)</font></div></td>
      <td><input name="eName" type="text" id="eName" value="<%=rs("eName")%>" size="40" /></td>
    </tr>
    <tr>
      <td width="15%" ><div align="center">名人分类</div></td>
      <td><select name="SortID" id="SortID">
        <%
set rsc=server.CreateObject("adodb.recordset")
rsc.open "select * from Sort_Celeb",conn,1,1
while not rsc.eof
if rs("SortID")=rsc("id") then
response.Write("<option value=""" & rsc("id") & """ selected>" & rsc("Name") & "</option>")
else
response.Write("<option value=""" & rsc("id") & """>" & rsc("Name") & "</option>")
end if
rsc.movenext
wend
rsc.close
set rsc=nothing
%>
      </select></td>
    </tr>
    <tr>
      <td ><div align="center">名人主页</div></td>
      <td><input name="FrontPage" type="text" id="FrontPage" value="<%=rs("FrontPage")%>" size="40" /></td>
    </tr>
    <tr>
      <td width="15%" ><div align="center">名人照片</div></td>
      <td><input name="Photo" type="text" id="Photo" value="<%=rs("Photo")%>" size="50" />
          <input type="button" value="上传图片" onclick="showUploadDialog('image', 'myform.imgs', '')" />
        (缩略图尺寸：148*148)</td>
    </tr>
    <tr>
      <td width="15%" ><div align="center">名人介绍<font color="#FF0000"> (中文)</font></div></td>
      <td><input name="Description" type="hidden" id="Description" value="<%=rs("Description")%>" />
          <iframe id="eWebEditor2" src="ewebeditor/ewebeditor.htm?id=Description&amp;style=popup" frameborder="0" scrolling="No" width="100%" height="400"></iframe></td>
    </tr>
    <tr id="EN_2">
      <td width="15%" ><div align="center">名人介绍 <font color="#FF0000">(英文)</font></div></td>
      <td><input name="eDescription" type="hidden" id="eDescription" value="<%=rs("eDescription")%>" />
          <iframe id="eWebEditor2" src="ewebeditor/ewebeditor.htm?id=eDescription&amp;style=popup" frameborder="0" scrolling="No" width="100%" height="400"></iframe></td>
    </tr>
    <tr>
      <td width="15%" >&nbsp;</td>
      <td><input type="submit" name="button2"  value="確认提交" /></td>
    </tr>
  </table>
</form>
</td>
</tr>
</table>

<%end if%>

</body>
</html>
<!--#include file="Language.asp"-->
